package org.liuhy.node
{
	import flash.events.MouseEvent;	
	public class StopFlowNode extends FlowNode
	{	
		public function StopFlowNode(p_x:int,p_y:int,p_width:int,p_height:int)
		{
			super(p_x,p_y,p_width,p_height);
			this._textArea.text = "终";	
			this._textArea.enabled = false;	
		}
		override public function draw():void{	
			this.graphics.clear();		
			this.graphics.beginFill(0xffffff,1);
			this.graphics.lineStyle(1,this.borderColor,2);
			this.graphics.drawCircle(this.width/2,this.height/2,this.width/2-5);
			//this.graphics.endFill();			
			this.graphics.beginFill(0x000000,1);
			this.graphics.lineStyle(1,this.borderColor,2);
			this.graphics.drawCircle(this.width/2,this.height/2,this.width/2-10);
			this.graphics.endFill();
		}
		override public function isPermitFromDrop():Boolean{
			return false;
		}
		override public function get type():String{
			return "stop";
		}
	}
}